import { AddFormatFunc, calcTernaryRuleType } from "../types";

AddFormatFunc<calcTernaryRuleType>({

	type: "CALC_TERNARY",

	handle: (rule, FMC) => {
		return `? ${FMC(rule[1])}: ${FMC(rule[2])}`;
	},

})
